package ch1;

public class Screo3 {

	public static void main(String[] args) {
		double s1 = 81.29;
		int rise = 2;
		double second = s1 + rise;

		System.out.println(second);
		char c = '刘';
		int i = c;// 自动转换
		System.out.println("i=" + i);

		int b = (int) 10.2;
		System.out.println("b=" + b);
		double d2 = 4.8, j = 5.7;
		int k = (int) (d2 + j);
		System.out.println("k=" + k);

		// 强转不一定只损失了小数点
		double d3 = 494949949494949499494949.444;
		int i3 = (int) d3;
		System.out.println("i3=" + i3);
	}
}
